@import './var.scss';

/**
  * @description 公共样式
  * @author simon@sayto.top
  * 包含样式重置（css reset）和 全局分离样式（separate style）
 */

// use in this file only
$paging-height-int: 55;
$breadcrumb-height: 50px; // 面包屑高度
$filer-height: 80px; // 筛选器高度
$paging-height: $paging-height-int + 0px; // 分页器高度

:export {
  pagingHeight: $paging-height-int;
}

/* 分离样式 */
/* display */
.dn {
  display: none;
}
.di {
  display: inline;
}
.db {
  display: block;
}
.dib {
  display: inline-block;
}
.df{
  display: flex;
}
.flex-shrink-0{
  flex-shrink: 0;
}
/* box-sizing */
.bsb {
  box-sizing: border-box;
}
/* 浮动 */
.fl {
  float: left;
}
.fr {
  float: right;
}
/* 宽度百分比 */
.wp100 {
  width: 100%;
}
/* position */
.por {
  position: relative;
}
.poa {
  position: absolute;
}
/* text-align */
.tal {
  text-align: left;
}
.tac {
  text-align: center;
}
.tar {
  text-align: right;
}
/* clear float */
.clf::after {
  content: '';
  display: block;
  clear: both;
}

html::-webkit-scrollbar {
  display: none;
}

/* 隐藏滚动条 */
.no-scroll-bar {
  &::-webkit-scrollbar {
    display: none;
    width: 0;
  }
}

/* 居中 */
.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* margin padding */
@for $i from 0 through 30 {
  .m#{$i} {
    margin: $i * 1px; /* no */
  }
  .ml#{$i} {
    margin-left: $i * 1px; /* no */
  }
  .mr#{$i} {
    margin-right: $i * 1px; /* no */
  }
  .mt#{$i} {
    margin-top: $i * 1px; /* no */
  }
  .mb#{$i} {
    margin-bottom: $i * 1px; /* no */
  }
  .p#{$i} {
    padding: $i * 1px; /* no */
  }
  .pl#{$i} {
    padding-left: $i * 1px; /* no */
  }
  .pr#{$i} {
    padding-right: $i * 1px; /* no */
  }
  .pt#{$i} {
    padding-top: $i * 1px; /* no */
  }
  .pb#{$i} {
    padding-bottom: $i * 1px; /* no */
  }
}

@for $i from 100 through 400 {
  .w#{$i} {
    width: $i * 1px;
  }
}

// 一个表示加载中的简单小动画，3个点依次显示
.dota {
  display: inline-block;
  height: 1em;
  line-height: 1;
  text-align: left;
  vertical-align: -0.25em;
  overflow: hidden;
}
.dota::before {
  display: block;
  content: '...\A..\A.';
  white-space: pre-wrap; /* 也可以是white-space: pre */
  animation: dot 3s infinite step-start both;
}
@keyframes dot {
  33% {
    transform: translateY(-2em);
  }
  66% {
    transform: translateY(-1em);
  }
}

.breadcrumb-container {
  height: $breadcrumb-height;
  padding-left: 14px;
  display: flex;
  align-items: center;
  background-color: #fff;
  position: sticky;
  display: none;
  top: 0;
  z-index: 100;
  .link {
    cursor: pointer;
  }
}
.filter {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: #F5F5F5;
  border: 1px solid #F5F5F5;
  border-radius: 2px;
  

  // padding: 0 $padding-main;
  // min-height: $filer-height;
  // overflow: hidden;
  // display: flex;
  // align-items: center;
  // justify-content: space-between;
  // // background-color: #fff;
  // height: 80px;
  .filter-input {
    width: 180px;
  }
  .filter-select {
    width: 140px;
  }
}
.main-body {
  // padding-left: $padding-main;
  // padding-right: $padding-main;
  margin: 10px 0 0 0;

  .ant-table-thead .ant-table-row-cell-break-word {
    background: #f6f6f6;
  }
}
.paging-container {
  height: $paging-height;
  overflow: hidden;
}

body {
  font-size: 14px;
}

.bgf {
  background-color: #fff;
}

.required {
  &::before {
    content: '*';
    color: #f32020;
  }
}

.primaryColor {
  color: $color-main !important;
}

.h20 {
  height: 20px;
}
.ant-tabs {
  width: 100%;
  height: 100%;
    .ant-tabs-top-content {
      width: 100%;
      height: calc(100% - 60px);
    }
}

.detailModal {
  position: relative;
  .top {
    display: flex;
    width: 100%;
    // justify-content: space-between;
    div {
      width: 33.33%;
    }
    // div:nth-of-type(2) {
    //   margin-left: 120px;
    // }
  }
  .inlinetop {
    padding-right: 145px;
    justify-content: space-between;
  }
  .qrcode-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px !important;
    height: 90px !important;
  }
  .qrcode {
    display: inline-block;
    width: 90px !important;
    height: 90px !important;
    font-size: 12px;
    img {
      width: 90px !important;
      height: 90px !important;
      background-color: #fff; //设置白色背景色
      padding: 6px; // 利用padding的特性，挤出白边
      box-sizing: border-box;
    }
    canvas {
      width: 90px !important;
      height: 90px !important;
    }
  }
}

.detailModalNew {
  position: relative;
  .top {
    display: flex;
    width: 100%;
    // justify-content: space-between;
    div {
      width: 33.33%;
    }
    // div:nth-of-type(2) {
    //   margin-left: 120px;
    // }
  }
  .inlinetop {
    padding-right: 145px;
    justify-content: space-between;
  }
  .qrcode-box {
    position: absolute;
    top: 0;
    // right: 0;
    right: -20px;
    width: 120px !important;
    height: 120px !important;
  }
  .qrcode {
    display: inline-block;
    width: 120px !important;
    height: 120px !important;
    font-size: 12px;
    img {
      width: 120px !important;
      height: 120px !important;
      background-color: #fff; //设置白色背景色
      padding: 6px; // 利用padding的特性，挤出白边
      box-sizing: border-box;
    }
    canvas {
      width: 120px !important;
      height: 120px !important;
    }
  }
}

.search-box-btn{
  .reset-btn{
    background: rgba(224, 224, 224, 1) !important;
    border-radius: 4px;
    border: 1px solid #F0F0F0;
  }
}

.merchant-body {
  margin: 0 !important;
}
.explain-header {
  padding-top: 10px;
  border-radius: 4px;
  border: 1px solid #F0F0F0;
  .explain-main{
    background-color: #F5F5F5;
    padding: 10px 14px;
    .explain-title{
      font-size: 14px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #333333;
      margin-bottom: 6px;
    }
    .explain-box{
      height: auto;
      opacity: 1;
      overflow: hidden;
      .explain-item{
        display: flex;
        flex-wrap: wrap;
        p{
          display: inline-block;
          margin-right: 20px;
          margin-bottom: 0;
          font-size: 12px;
          color: #666666;
          line-height: 25px;
          span{
            font-weight: 500;
          }
          &:last-of-type{
            margin: 0;
          }
        }
      }
    }
    .mybox-leave-active,.mybox-enter{
      height: auto !important;
      opacity: 0;
    }
    .mybox-leave,.mybox-enter-active{
      height: auto;
      opacity: 1;
    }
    .explain-btn{
      height: auto;
      padding-left: 0;
      color: #1D6FE9;
      margin-top: 6px;
    }
  }
}
.filters{
  display: flex !important;
  justify-content: space-between;
}
.border-radious-2{
  border-radius: 2px !important;
}
.color-333{
  color: #333333 !important;
}
.ant-modal-confirm .ant-modal-confirm-btns button + button{
  background: #1D6FE9;
}